package cn.mapway.tools.rpc.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * ClassDefination
 *
 * @author zhangjianshe@gmail.com
 */
@Data
public class ClassDefination {
    String typeName;
    String simpleName;
    String summary;
    //类型的形参
    List<String> typeParameters;
    Boolean isPrimitive;
    List<FieldDefination> fields;

    public ClassDefination() {
        typeParameters = new ArrayList<>();
        fields = new ArrayList<>();
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
        this.simpleName = Types.simpleType(typeName);
        isPrimitive = TypeUtil.isPrimitive(typeName);
    }

    public String toString() {
        return "";
    }
}
